import Mock from 'mockjs'

export default {
  search: () => {
    const items = Mock.mock({
      'items|30': [{
        id: '@id',
        title: '@ctitle(10, 30)',
        abstract: '@cparagraph(80, 200)',
        author: '@cname',
        createTime: '@datetime'
      }]
    })
    return {
      code: 20000,
      data: items.items
    }
  }
}
